package com.kaiwukj.android.ufamily.utils;

import android.os.Build;

import com.luck.picture.lib.entity.LocalMedia;

import java.util.List;

public class LocalMediaUtils {

    public static List<LocalMedia> handlePath(List<LocalMedia> list) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
            for (int i = 0; i < list.size(); i++) {
                list.get(i).setRealPath(list.get(i).getPath());
            }
        }
        return list;
    }

}
